package cn.stronglink.assetmanage.business.check.presenter;

import java.io.IOException;
import java.util.List;

import cn.stronglink.assetmanage.MyApplication;
import cn.stronglink.assetmanage.R;
import cn.stronglink.assetmanage.business.check.model.SyncModel;
import cn.stronglink.assetmanage.business.check.view.sync.CheckSyncView;
import cn.stronglink.assetmanage.entity.Asset;
import cn.stronglink.assetmanage.entity.Check;
import cn.stronglink.assetmanage.index.base.BasePresenter;
import okhttp3.Call;
import okhttp3.Response;

/**
 * Created by chencongcong on 2018/6/12.
 */

public class SyncListPresenter extends BasePresenter{
    private CheckSyncView checkSyncView;
    private SyncModel syncModel;
    //未入库表单列表
    private List<Check> entityList;
    //具体某个表单资源列表
    private List<Asset> orderList;

    public SyncListPresenter(CheckSyncView checkSyncView, SyncModel syncModel) {
        this.checkSyncView = checkSyncView;
        this.syncModel = syncModel;
    }

    /**
     * 初始化待同步列表
     */
    public void initCheckListData() {
        entityList = syncModel.getDataByOrderNoDistince();
        checkSyncView.setListData(entityList);
    }

    @Override
    public void onStart() {

    }

    @Override
    public void onStop() {

    }

    @Override
    public void start() {

    }

    /**
     * 显示选中表单资源列表
     *
     * @param postion
     */
    public void showOrderData(int postion) {

    }

}
